package com.qfedu.hotelssm.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author mk
 * @date 2022/9/1  16:54
 */
@Data
@ColumnWidth(25)
public class PassengersExportDto {
    @ExcelProperty("序号")
    private int id;
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("身份证")
    private String idnumber;
    @ExcelProperty("电话")
    private String phone;
    @ExcelProperty("入住时间")
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd")//接收
    private Date ctime ;
    @ExcelProperty("旅客入住房间id")
    private int rid;
    @ExcelProperty("旅客入住房间名")
    private String rname;


}
